package com.xxq.semester.entity.user;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

import java.io.Serial;
import java.time.LocalDateTime;
import java.io.Serializable;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 后台用户信息表
 * </p>
 *
 * @author saki
 * @since 2025-07-13
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("users")
@Schema(name = "Users对象", description = "后台用户信息表")
public class Users implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @Schema(description = "pk_id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @Schema(description = "用户名")
    private String username;

    @Schema(description = "密码")
    private String password;

    @Schema(description = "邮箱")
    private String email;

    @Schema(description = "头像")
    private String avatar;

    @Schema(description = "性别")
    private Boolean gender;

    @Schema(description = "角色 ")
    private String role;
    @Schema(description = "创建时间")
    private LocalDateTime createdAt;

    private LocalDateTime lastUpdate;
    @Schema(description = "手机号码")
    private String phone;
    @Schema(description = "个人简介")
    private String bio;



}
